using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkAnalystTools._NetworkDataset
{
    /// <summary>
    /// <para>Make Network Dataset Layer</para>
    /// <para>Creates a network dataset layer from a network  dataset.</para>
    /// <para>从网络数据集创建网络数据集图层。</para>
    /// </summary>    
    [DisplayName("Make Network Dataset Layer")]
    public class MakeNetworkDatasetLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MakeNetworkDatasetLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_dataset">
        /// <para>Input Network Dataset</para>
        /// <para>The network dataset from which to make the new layer.</para>
        /// <para>用于创建新图层的网络数据集。</para>
        /// </param>
        /// <param name="_output_layer">
        /// <para>Output Layer</para>
        /// <para><xdoc>
        ///   <para>The name of the network dataset layer to be created.</para>
        ///   <para>The layer can be used as an input to any geoprocessing tool that accepts a network dataset layer as input.</para>
        ///   <para>The output layer created is temporary and will not persist after the session ends. To save the layer to the disk, run the Save To Layer File tool.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要创建的网络数据集图层的名称。</para>
        ///   <para>该图层可用作接受网络数据集图层作为输入的任何地理处理工具的输入。</para>
        ///   <para>创建的输出层是临时的，在会话结束后不会保留。要将图层保存到磁盘，请运行保存到图层文件工具。</para>
        /// </xdoc></para>
        /// </param>
        public MakeNetworkDatasetLayer(object _in_network_dataset, object _output_layer)
        {
            this._in_network_dataset = _in_network_dataset;
            this._output_layer = _output_layer;
        }
        public override string ToolboxName => "Network Analyst Tools";

        public override string ToolName => "Make Network Dataset Layer";

        public override string CallName => "na.MakeNetworkDatasetLayer";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_network_dataset, _output_layer, _draw_elements];

        /// <summary>
        /// <para>Input Network Dataset</para>
        /// <para>The network dataset from which to make the new layer.</para>
        /// <para>用于创建新图层的网络数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_dataset { get; set; }


        /// <summary>
        /// <para>Output Layer</para>
        /// <para><xdoc>
        ///   <para>The name of the network dataset layer to be created.</para>
        ///   <para>The layer can be used as an input to any geoprocessing tool that accepts a network dataset layer as input.</para>
        ///   <para>The output layer created is temporary and will not persist after the session ends. To save the layer to the disk, run the Save To Layer File tool.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要创建的网络数据集图层的名称。</para>
        ///   <para>该图层可用作接受网络数据集图层作为输入的任何地理处理工具的输入。</para>
        ///   <para>创建的输出层是临时的，在会话结束后不会保留。要将图层保存到磁盘，请运行保存到图层文件工具。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_layer { get; set; }


        /// <summary>
        /// <para>Network Elements to Draw</para>
        /// <para>This parameter is not yet supported in ArcGIS Pro.</para>
        /// <para>ArcGIS Pro 尚不支持此参数。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Elements to Draw")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _draw_elements { get; set; } = null;


        public MakeNetworkDatasetLayer SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}